package cn.lds.j367.dsbank.mapper;

import cn.lds.j367.dsbank.entity.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpMapper {

    List<Employee> selectEmployeeByEmp(Employee employee);

    Employee selectEmployeeByEmpUsername(String empUsername);

    Employee selectEmpById(Integer empId);

    Employee loginEmp(Employee employee);

    Integer addEmp(Employee employee);

    Integer addEmpAndRole(@Param("eId") Integer empId, @Param("rId") Integer roldId);

    Integer modifyEmp(Employee employee);

    Integer deleteEmp(Integer empId);


}
